<?php
namespace app\controllers;
use app\models\Post;
class PostController extends BaseController
{
    public function index(){
      $user =  Post::table('user')->where('id','=',1)->find();
      var_dump($user);
    }
}